-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CoW: Avoid copying Index in Series constructor #52008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CoW: Avoid copying Index in Series constructor #52008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -399,7 +399,8 @@ def inferred_type(self) -> str: | |||
"""Return a string of the type inferred from the values""" | |||
return "interval" | |||
|
|||
@Appender(Index.memory_usage.__doc__) | |||
# Cannot determine type of "memory_usage" | |||
@Appender(Index.memory_usage.__doc__) # type: ignore[has-type] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this related?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a mypy bug.
Adding
from pandas._libs.internals import BlockValuesRefs
to the base file causes this
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.